package com.wlz.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author wlz
 * @date 2022-05-23  9:06 下午
 */
@Component
public class MyJSR250BeanInitAndDestroy {


	public MyJSR250BeanInitAndDestroy() {
		System.out.println("MyJSR250BeanInitAndDestroy Construct .......");
	}


	@PostConstruct
	public void init() {
		System.out.println("MyJSR250BeanInitAndDestroy @PostConstruct init....");
	}

	@PreDestroy
	public void destory() {
		System.out.println("MyJSR250BeanInitAndDestroy @PreDestroy destory .... ");
	}
}
